Method and electronic device for controlling external electronic device

ABSTRACT

A method for controlling an external electronic device of an electronic device, according to various embodiments, comprises the steps of: receiving data information corresponding to at least one function of the external electronic device from an external electronic device connected to the electronic device; displaying a setting window for setting a user interface for controlling the external electronic device using the data information; selecting a control item corresponding to the at least one function included in the setting window according to user input reception; and setting and displaying the user interface corresponding to the selected control item. Other embodiments are possible.

This application is a National Phase Entry of PCT InternationalApplication No. PCT/KR2017/000649, which was filed on Jan. 19, 2017, andclaims priority to Korea Patent Application 10-2016-0013615, which wasfiled on Feb. 3, 2016, the contents of which are incorporated herein byreference.

TECHNICAL FIELD

The present disclosure generally relates to a method and an electronicdevice for controlling an external electronic device.

BACKGROUND ART

The use of electronic devices, such as tablet PCs, smart phones, smartwatches, and the like has become universalized, and technology relatedto the control of external electronic devices using a wirelesscommunication function has been developed and applied to electronicdevices, in addition to functions related to photos, music, videos,games, and the like.

Also, recently used electronic devices provide user interfaces that showthe states of the electronic device such that users can easily recognizethe current state information of corresponding electronic devices. Forexample, an electronic device displays state information, such as areceived signal strength indication (RSSI) of the electronic device, thestate of a remaining charge of the battery, notification information,and the like, in a designated area of a screen of the electronic device.

DETAILED DESCRIPTION OF THE INVENTION Technical Problem

Conventionally, an electronic device provides only setting items relatedto the current state of the electronic device, whereby a user is unableto additionally register predetermined information, for example, asetting item other than the items set in the current electronic device,which is a drawback.

Also, with the advancement of technology, connection and communicationbetween an electronic device and an external electronic device arefrequently performed. Conventionally, for the connection andcommunication between the electronic device and the external electronicdevice, a user may need to additionally install, in the electronicdevice, an installation program provided from a developer of theexternal electronic device or the like, which is inconvenient for theuser.

Also, when an electronic device desires to change the state or settingsof a connected external electronic device, the user needs to search forand execute a corresponding application installed in the electronicdevice, which is also inconvenient for the user. Also, an operationassociated with the external electronic device may be performed only inthe state in which the application is executed. Accordingly, the usercan change settings via the application after switching the currentlyexecuting application to the background. In this instance, the currentlyexecuting application may be unintentionally terminated, which causesinconvenience for the user.

Accordingly, various embodiments provide a method and an electronicdevice for controlling an external electronic device, wherein the methodand the electronic device may make it easy to install, in the electronicdevice, a program for controlling an external electronic device, so asto identify state information of the external electronic deviceconnected to the electronic device or to change settings.

Various embodiments provide a method and an electronic device forcontrolling an external electronic device, wherein the method and theelectronic device may identify state information of an externalelectronic device connected to the electronic device via a simpleoperation.

Various embodiments provide a method and an electronic device forcontrolling an external electronic device, wherein the method and theelectronic device may alleviate the burden of searching for andexecuting an installed program to control an external electronic device,thereby quickly changing settings of the external electronic device.

Various embodiments provide a method and an electronic device forcontrolling an external electronic device, wherein the method and theelectronic device may display state information of an externalelectronic device in a predetermined indicator area or a notificationpanel area, such that a user quickly changes settings of the externalelectronic device using the areas.

Technical Solution

In accordance with an aspect of the present disclosure, a method ofcontrolling an external electronic device by an electronic device isprovided, and the method includes: receiving, from an externalelectronic device connected to the electronic device, data informationcorresponding to at least one function of the external electronicdevice; displaying a setting window for setting a user interface forcontrolling the external electronic device using the data information;selecting a control item corresponding to the at least one functionincluded in the setting window according to reception of user input; andsetting and displaying the user interface corresponding to the selectedcontrol item.

In accordance with an aspect of the present disclosure, an electronicdevice is provided, and the electronic device may include: an inputunit; a communication unit; a display, and a processor configured to:receive, from an external electronic device connected via thecommunication unit, data information corresponding to at least onefunction of the external electronic device; display, on the display, asetting window for setting a user interface for controlling the externalelectronic device using the data information; select a control item,which corresponds to the at least one function and is included in thesetting window, according to user input received via the input unit; andset the user interface corresponding to the selected control item anddisplay the user interface on the display.

Advantageous Effects

According to various embodiments, a method and an electronic device forcontrolling an external electronic device may make it easy to install,in the electronic device, a program for controlling an externalelectronic device so as to identify state information of the externalelectronic device connected to the electronic device or to changesettings. Also, the state information of the external electronic deviceconnected to the electronic device may be identified with a simpleoperation. Also, the burden of searching for and executing an installedprogram to control the external electronic device may be eliminated,whereby a user can quickly change the settings of the externalelectronic device. Accordingly, the user may omit a process of searchingfor a predetermined application installed in the electronic device andinstalling and/or operating a program for controlling the externalelectronic device, whereby the user can conveniently operate theelectronic device. Also, the developer of an external electronic devicemay be freed from the burden of developing an additional application forcommunicating with the electronic device and controlling the same.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 illustrates a network environment according to variousembodiments;

FIG. 2 is a block diagram illustrating a processor of an electronicdevice according to various embodiments;

FIG. 3 is a block diagram illustrating an electronic device according tovarious embodiments;

FIG. 4 is a block diagram of a program module according to variousembodiments;

FIG. 5 is a diagram illustrating an operation of controlling an externalelectronic device by an electronic device according to variousembodiments;

FIG. 6 is a flowchart illustrating an operation of controlling anexternal electronic device by an electronic device according to variousembodiments;

FIGS. 7A, 7B, 7C, 7D, 7E, and 7F are diagrams illustrating control of anexternal electronic device by an electronic device according to variousembodiments;

FIG. 8A is a flowchart illustrating operations of generating anddisplaying a user interface for controlling an external electronicdevice by an electronic device according to various embodiments;

FIG. 8B is a flowchart illustrating operations of controlling anexternal electronic device in response to user input for controlling theexternal electronic device by an electronic device according to variousembodiments;

FIG. 9 is a diagram illustrating a change in the state of an electronicdevice, based on an operation of controlling an external electronicdevice by the electronic device according to various embodiments;

FIGS. 10 and 11 are diagrams illustrating examples of a screen displayedin an electronic device; and

FIG. 12 is a diagram illustrating an example of an operation ofexecuting an application installed in an electronic device.

MODE FOR CARRYING OUT THE INVENTION

Hereinafter, various embodiments of the present disclosure will bedescribed with reference to the accompanying drawings. However, itshould be understood that there is no intent to limit the presentdisclosure to the particular forms disclosed herein; rather, the presentdisclosure should be construed to cover various modifications,equivalents, and/or alternatives of embodiments of the presentdisclosure. In describing the drawings, similar reference numerals maybe used to designate similar constituent elements.

As used herein, the expression “have”, “may have”, “include”, or “mayinclude” refers to the existence of a corresponding feature (e.g.,numeral, function, operation, or constituent element such as component),and does not exclude one or more additional features.

In the present disclosure, the expression “A or B”, “at least one of Aor/and B”, or “one or more of A or/and B” may include all possiblecombinations of the items listed. For example, the expression “A or B”,“at least one of A and B”, or “at least one of A or B” refers to all of(1) including at least one A, (2) including at least one B, or (3)including all of at least one A and at least one B.

The expression “a first”, “a second”, “the first”, or “the second” usedin various embodiments of the present disclosure may modify variouscomponents regardless of the order and/or the importance but does notlimit the corresponding components. For example, a first user device anda second user device indicate different user devices although both ofthem are user devices. For example, a first element may be termed asecond element, and similarly, a second element may be termed a firstelement without departing from the scope of the present disclosure.

It should be understood that when an element (e.g., first element) isreferred to as being (operatively or communicatively) “connected,” or“coupled,” to another element (e.g., second element), it may be directlyconnected or coupled directly to the other element or any other element(e.g., third element) may be interposer between them. In contrast, itmay be understood that when an element (e.g., first element) is referredto as being “directly connected,” or “directly coupled” to anotherelement (second element), there are no element (e.g., third element)interposed between them.

The expression “configured to” used in the present disclosure may beexchanged with, for example, “suitable for”, “having the capacity to”,“designed to”, “adapted to”, “made to”, or “capable of” according to thesituation. The term “configured to” may not necessarily imply“specifically designed to” in hardware. Alternatively, in somesituations, the expression “device configured to” may mean that thedevice, together with other devices or components, “is able to”. Forexample, the phrase “processor adapted (or configured) to perform A, B,and C” may mean a dedicated processor (e.g., embedded processor) onlyfor performing the corresponding operations or a generic-purposeprocessor (e.g., Central Processing Unit (CPU) or Application Processor(AP)) that can perform the corresponding operations by executing one ormore software programs stored in a memory device.

The terms used in the present disclosure are only used to describespecific embodiments, and are not intended to limit the presentdisclosure. A singular expression may include a plural expression unlessthey are definitely different in a context. Unless defined otherwise,all terms used herein, including technical and scientific terms, havethe same meaning as those commonly understood by a person skilled in theart to which the present disclosure pertains. Such terms as thosedefined in a generally used dictionary may be interpreted to have themeanings equal to the contextual meanings in the relevant field of art,and are not to be interpreted to have ideal or excessively formalmeanings unless clearly defined in the present disclosure. In somecases, even the term defined in the present disclosure should not beinterpreted to exclude embodiments of the present disclosure.

An electronic device according to various embodiments of the presentdisclosure may include at least one of, for example, a smart phone, atablet Personal Computer (PC), a mobile phone, a video phone, anelectronic book reader (e-book reader), a desktop PC, a laptop PC, anetbook computer, a workstation, a server, a Personal Digital Assistant(PDA), a Portable Multimedia Player (PMP), a MPEG-1 audio layer-3 (MP3)player, a mobile medical device, a camera, and a wearable device.According to various embodiments, the wearable device may include atleast one of an accessory type (e.g., a watch, a ring, a bracelet, ananklet, a necklace, a glasses, a contact lens, or a Head-Mounted Device(HMD)), a fabric or clothing integrated type (e.g., an electronicclothing), a body-mounted type (e.g., a skin pad, or tattoo), and abio-implantable type (e.g., an implantable circuit).

According to some embodiments, the electronic device may be a homeappliance. The home appliance may include at least one of, for example,a television, a Digital Video Disk (DVD) player, an audio, arefrigerator, an air conditioner, a vacuum cleaner, an oven, a microwaveoven, a washing machine, an air cleaner, a set-top box, a homeautomation control panel, a security control panel, a TV box (e.g.,Samsung HomeSync™, Apple TV™, or Google TV™), a game console (e.g.,Xbox™ and PlayStation™), an electronic dictionary, an electronic key, acamcorder, and an electronic photo frame.

According to another embodiment, the electronic device may include atleast one of various medical devices (e.g., various portable medicalmeasuring devices (a blood glucose monitoring device, a heart ratemonitoring device, a blood pressure measuring device, a body temperaturemeasuring device, etc.), a Magnetic Resonance Angiography (MRA), aMagnetic Resonance Imaging (MRI), a Computed Tomography (CI) machine,and an ultrasonic machine), a navigation device, a Global PositioningSystem (GPS) receiver, an Event Data Recorder (EDR), a Flight DataRecorder (FDR), a Vehicle Infotainment Devices, an electronic devicesfor a ship (e.g., a navigation device for a ship, and a gyro-compass),avionics, security devices, an automotive head unit, a robot for home orindustry, an Automatic Teller's Machine (ATM) in banks, Point Of Sales(POS) in a shop, or internet device of things (e.g., a light bulb,various sensors, electric or gas meter, a sprinkler device, a firealarm, a thermostat, a streetlamp, a toaster, a sporting goods, a hotwater tank, a heater, a boiler, etc.).

According to some embodiments, the electronic device may include atleast one of a part of furniture or a building/structure, an electronicboard, an electronic signature receiving device, a projector, andvarious kinds of measuring instruments (e.g., a water meter, an electricmeter, a gas meter, and a radio wave meter). The electronic deviceaccording to various embodiments of the present disclosure may be acombination of one or more of the aforementioned various devices. Theelectronic device according to some embodiments of the presentdisclosure may be a flexible device. Further, the electronic deviceaccording to an embodiment of the present disclosure is not limited tothe aforementioned devices, and may include a new electronic deviceaccording to the development of technology.

Hereinafter, an electronic device according to various embodiments willbe described with reference to the accompanying drawings. In the presentdisclosure, the term “user” may indicate a person using an electronicdevice or a device (e.g., an artificial intelligence electronic device)using an electronic device.

An electronic device may provide an indicator area 1001 that shows thestate of the electronic device, as shown in FIG. 10A. The indicator area1001 may display information, for example, a received signal strengthindicator (RSSI), the amount of a charge remaining in a battery,notification information, or the like, so as to indicate the currentstate information of the electronic device to a user. When the usertouches and drags the indicator area 1001 of the electronic devicedownwards, the electronic device may provide a notification panel area1003 (or a quick panel area) and a quick setting area 1005, asillustrated in FIG. 10B. The notification panel area 1003 mayadditionally provide, to the user, event information related to aprogram installed in the electronic device. For example, when apredetermined event occurs in the electronic device, the electronicdevice may display information associated with the predetermined eventin a list 1005 on the notification panel area 1003. The quick settingarea 1007 may include various setting items in order to enable the userto quickly change the state of the electronic device, such as “Wi-Fi”for setting Wi-Fi, “location” for identifying location information ofthe electronic device, “sound” for controlling the sound of theelectronic device, “auto rotate” for setting automatic screen rotationof the electronic device, “Bluetooth” for setting a Bluetooth function,and the like.

Also, the user may add a setting item related to the current electronicdevice via an indicator area (e.g., the indicator area 1001) or anotification panel (e.g., the notification panel 1003). For example, viaan indicator area 1101 (e.g., the indicator area 1001) in FIG. 11A, theuser may arbitrarily add state information of the electronic device oran event. For example, as illustrated in FIG. 11B, a notification panelarea 1103 (e.g., the notification panel area 1003) may include anediting icon 1104, and the electronic device may display the screenillustrated in FIG. 11C when the user selects the editing icon.Referring to FIG. 11C, various setting items may be provided such that auser may select items to be displayed in the quick setting area 1007.However, in FIG. 11C, only setting items related to the current state ofthe electronic device are provided, whereby a user may not additionallyregister predetermined information, for example, a setting item otherthan the items set in the current electronic device.

Also, when the electronic device desires to change the state or settingsof a connected external electronic device, the electronic device mayneed to search for and execute a corresponding application installed inthe electronic device, as shown in FIGS. 12A, 12B, 12C, and 12D.

Accordingly, hereinafter, various embodiments for controlling anexternal electronic device, such as identifying the state information ofthe external electronic device connected to an electronic device,changing the settings of the external electronic device, or the like,will be described with reference to FIGS. 1 to 9.

An electronic device 101 in a network environment 100 according tovarious embodiments will be described with reference to FIG. 1. Theelectronic device 101 may include a bus 110, a processor 120, a memory130, an input/output interface 150 (or an input unit), a display 160,and a communication interface 170 (or a communication module). In someembodiments, the electronic device 101 may omit at least one of theelements, or may further include other elements.

The bus 110 may include, for example, a circuit which interconnects theelements 110 to 170 and forwards communication (e.g., a control messageand/or data) between the elements 110 to 170.

The processor 120 may include one or more of a central processing unit(CPU), an application processor (AP), and a communication processor(CP). The processor 120, for example, may carry out operations or dataprocessing relating to the control and/or communication of at least oneother element of the electronic device 101.

Referring to FIG. 2, a processor 220 (e.g., the processor 120) mayinclude a connection manager 221, a device manager 223, and a userinterface (UI) manager 223.

The connection manager 221 may connect an electronic device (e.g., theelectronic device 101) to at least one external electronic device (e.g.,the electronic device 104) via a communication interface (e.g., thecommunication interface 170).

The connection manager 221 may identify and manage entity information ofeach of the at least one external electronic device. For example, theconnection manager 221 may identify each external electronic devicebased on entity information of each of the at least one externalelectronic device.

The connection manager 221 may receive, from the at least one externalelectronic device, data information corresponding to at least onefunction of the external electronic device.

The at least one function may be 1 to N functions according to a dataconfiguration agreed upon in advance between the electronic device andthe external electronic device. The data information may be informationbased on a configuration agreed upon in advance between the electronicdevice and the external electronic device. The data information mayinclude at least one from among the ID of the control item correspondingto the function, the label of the control item corresponding to thefunction, the data type of the control item corresponding to thefunction, and the range of a setting value of a component requiredaccording to the data type. The ID of the control item may be uniqueinformation used for identifying each item. The label of the controlitem may be character information desired to be written on a text labelindicating each item. The data type of the control item corresponding tothe function may be defined as bool, string, int, or the like, and thecomponent type of the control item to be displayed may be automaticallydetermined based on the data type. For example, when the data type ofthe control item is defined as the bool type, the component type of thecontrol item may be determined to be a form that allows selecting on oroff of the control item. In the case of the range of a setting value ofa component required according to the data type, for example, when thedata type of the control item is defined as int, the component type ofthe control item may be determined to be the form of a scroll bar. Inthis instance, the range of a setting value of a component requiredaccording to the data type may be the range of a setting value of thescroll bar.

The connection manager 221 may receive state information of the externalelectronic device, for example, state information corresponding to atleast one function, from the at least one external electronic device.For example, when the at least one function is a function of controllingturning-on or turning-off of the external electronic device and theexternal electronic device is currently turned on, the state informationmay be information indicating that the external electronic device iscurrently in the on-state.

The device manager 223 may collect and/or manage the data information ofthe at least one external electronic device. For example, the devicemanager 223 may receive data information of the external electronicdevice via the connection manager 221, and may collect the datainformation of the external electronic device. Alternatively, the devicemanager 221 may collect data information of the external electronicdevice which is stored in advance in the electronic device.

The UI manager 225 may use data information transferred from the devicemanager 223 so as to configure a setting window for setting a userinterface used for controlling the external electronic device, and maydisplay the setting window on a display (e.g., the display 160).

For example, when at least one control item in the setting windowdisplayed on the display 160 is selected via an input/output interface(e.g., the input/output interface 150), the UI manager 225 may generatea user interface corresponding to the selected control item, and maydisplay the generated user interface on the display.

The control item may correspond to a function of the electronic device.For example, when the external electronic device is an air conditioner,the at least one control item may include a power-setting item forsetting turning-on or turning-off of the air conditioner, atemperature-setting item for setting the temperature of the airconditioner, a wind-strength setting item for setting the wind strengthof the air conditioner, or the like.

When the UI manager 225 receives, from the device manager 223, a signalindicating that data information registered in the external electronicdevice does not exist, the UI manager 225 may display, on a display, aUI basic configuration which enables only a signal associated with anoperation of turning on or turning off the external electronic device tobe processed. The UI basic configuration may be stored in a memory(e.g., the memory 130) of the electronic device.

The memory 130 may include a volatile and/or a nonvolatile memory. Thememory 130 may store, for example, commands or data relevant to at leastone other element of the electronic device 101. For example, the memory130 may store contacts. Also, for example, the memory 130 may store atleast one contact and a name corresponding to the at least one contact.According to an embodiment, the memory 130 may store software and/or aprogram 140. The program 140 may include, for example, a kernel 141,middleware 143, an application programming interface (API) 145, and/orapplication programs (or “applications”) 147. At least some of thekernel 141, the middleware 143, and the API 145 may be referred to as anoperating system (OS).

The kernel 141 may control or manage system resources (e.g., the bus110, the processor 120, the memory 130, or the like) used for executingan operation or function implemented by other programs (e.g., themiddleware 143, the API 145, or the application 147). Furthermore, thekernel 141 may provide an interface via which the middleware 143, theAPI 145, or the application programs 147 may access the individualelements of the electronic device 101 to control or manage systemresources.

The middleware 143, for example, may serve as an intermediary forallowing the API 145 or the application programs 147 to communicate withthe kernel 141 in order to exchange data.

Furthermore, the middleware 143 may process one or more task requestsreceived from the application programs 147 according to prioritiesthereof. For example, the middleware 143 may assign priority to use thesystem resources (e.g., the bus 110, the processor 120, the memory 130,or the like) of the electronic device 101 to at least one of theapplication programs 147. For example, the middleware 143 may performscheduling or load-balancing on the one or more task requests byprocessing the one or more task requests according to the priorityassigned to the one or more application programs.

The API 145 is an interface via which the applications 147 controlfunctions provided from the kernel 141 or the middleware 143, and mayinclude, for example, at least one interface or function (e.g.,instruction) for file control, window control, image processing, or textcontrol.

The input/output interface 150 may serve as an interface that maytransfer commands or data, input from a user or an external device, toanother component(s) of the electronic device 101. For example, theinput/output interface 150 may receive input corresponding to userinput. Furthermore, the input/output interface 150 may output commandsor data received from another element(s) of the electronic device 101 toa user or an external device.

The display 160 may include, for example, a liquid crystal display(LCD), a light-emitting diode (LED) display, an organic light-emittingdiode (OLED) display, a microelectromechanical systems (MEMS) display,or an electronic paper display. The display 160 may display, forexample, various types of content (e.g., text, images, videos, icons,symbols, or the like) for a user. The display 160 may include a touchscreen and may receive, for example, a touch input, a gesture input, aproximity input, or a hovering input using an electronic pen or theuser's body part. Also, the display may be functionally connected to theelectronic device 101.

The communication interface 170 may configure communication, forexample, between the electronic device 101 and an external device (e.g.,a first external electronic device 102, a second external electronicdevice 104, or a server 106). For example, the communication interface170 may be connected to a network 162 via wireless or wiredcommunication to communicate with the external device (e.g., the secondexternal electronic device 104 or the server 106).

The wireless communication may use at least one from among, for example,long-term evolution (LTE), LTE-advanced (LTE-A), code division multipleaccess (CDMA), wideband CDMA (WCDMA), universal mobiletelecommunications system (UMTS), wireless broadband (WiBro), globalsystem for mobile communications (GSM), or the like, as a cellularcommunication protocol. In addition, the wireless communication mayinclude, for example, short-range communication 164. The short-rangecommunication 164 may include at least one from among, for example,Wi-Fi, Bluetooth, near field communication (NFC), and global navigationsatellite system (GNSS). The GNSS may include at least one from among,for example, a global positioning system (GPS), a global navigationsatellite system (GLONASS), a BeiDou navigation satellite system(hereinafter referred to as “BeiDou”), and a European globalsatellite-based navigation system (Galileo), according to a use area, abandwidth, or the like. Hereinafter, in the present disclosure, the term“GPS” may be interchangeably used with “GNSS”. The wired communicationmay include, for example, at least one of a universal serial bus (USB),a high-definition multimedia interface (HDMI), recommended standard 232(RS-232), a plain old telephone service (POTS), and the like. Thenetwork 162 may include at least one from among, for example, acommunication network such as a computer network (e.g., a LAN or a WAN),the Internet, and a telephone network.

Each of the first and second external electronic devices 102 and 104 maybe of a type that is the same as, or different from, that of theelectronic device 101. According to an embodiment, the server 106 mayinclude a group of one or more servers. According to variousembodiments, all or some of the operations performed by the electronicdevice 101 may be performed by another electronic device or a pluralityof electronic devices (e.g., the electronic devices 102 and 104 or theserver 106). According to an embodiment, when the electronic device 101has to perform a function or service automatically or in response to arequest, the electronic device 101 may request another device (e.g., theelectronic device 102 or 104, or the server 106) to perform at leastsome functions relating thereto, instead of, or additionally, performingthe function or service by itself. Another electronic device (e.g., theelectronic device 102 or 104, or the server 106) may execute therequested functions or the additional functions, and may deliver theresult of execution thereof to the electronic device 101. The electronicdevice 101 may provide the received result as it is, or may additionallyprocess the received result in order to provide the requested functionsor services. To this end, for example, cloud-computing,distributed-computing, or client-server-computing technology may beused.

According to various embodiments, an electronic device (e.g., theelectronic device 101) may include an input unit (e.g., the input/outputinterface 150), a communication unit (e.g., the communication interface170), a display (e.g., the display 160), and a processor (e.g., theprocessor 120), which may receive, from an external electronic deviceconnected via the communication unit, data information corresponding toat least one function of the external electronic device, may display, onthe display, a setting window for setting a user interface forcontrolling the external electronic device using the data information,may select a control item, which corresponds to the at least onefunction and is included in the setting window, according to user inputreceived via the input unit, and may set the user interfacecorresponding to the selected control item and display the userinterface on the display.

According to various embodiments, the processor may display, on thedisplay, an external electronic device list connectable to theelectronic device, and when user input for selecting the externalelectronic device from the displayed external electronic device list isreceived via the input unit, may perform control so as to establish aconnection to the external electronic device via the communication unitand to receive the data information from the external electronic device.

According to various embodiments, the processor may display, on thedisplay, a screen for selecting whether to establish a connection to theexternal device when user input for selecting the external electronicdevice from the displayed external electronic device list is receivedvia the input unit, and may establish a connection to the externalelectronic device via the communication unit when input for selectingthe connection to the external device is received via the input unit.

According to various embodiments, the data information may include atleast one from among an ID of the control item corresponding to thefunction, a label of the control item corresponding to the function, adata type of the control item corresponding to the function, and a rangeof a setting value of a component required according to the data type.

According to various embodiments, the processor may generate the controlitem, which corresponds to the at least one function and is to bedisplayed in at least one of a first area and a second area of thedisplay, using the data information, and may include the generatedcontrol item in the setting window.

According to various embodiments, the setting window may include a firstsetting area corresponding to the first area and a second setting areacorresponding to the second area.

According to various embodiments, the setting window may further includea third setting area for setting an icon indicating the external device.

According to various embodiments, the processor may perform control soas to receive state information corresponding to the function of theexternal electronic device from the external electronic device via thecommunication unit.

According to various embodiments, the processor may display the selectedcontrol item in which the state information is reflected.

According to various embodiments, the processor may transmit a signalfor controlling the function corresponding to the control item to theexternal electronic device via the communication unit when user inputfor controlling the control item of the user interface is received viathe input unit.

FIG. 3 is a block diagram illustrating an electronic device 301according to various embodiments. The electronic device 301 may include,for example, all or part of the electronic device 101 illustrated inFIG. 1. The electronic device 301 may include one or more processors(e.g., application processor (AP)) 310, a communication module 320, asubscriber identification module 324, a memory 330, a sensor module 340,an input device 350, a display 360, an interface 370, an audio module380, a camera module 391, a power management module 395, a battery 396,an indicator 397, and a motor 398.

The processor 310 may control a plurality of hardware or softwareelements connected thereto, and may perform various data processing andoperations by driving an operating system or an application program. Theprocessor 310 may be implemented, for example, as a system on chip(SoC). According to an embodiment, the processor 310 may further includea graphic processing unit (GPU) and/or an image signal processor. Theprocessor 310 may also include at least some (e.g., a cellular module321) of the elements illustrated in FIG. 3. The processor 310 may load,into a volatile memory, commands or data received from at least one(e.g., a nonvolatile memory) of the other elements, may process theloaded commands or data, and may store various data in the nonvolatilememory.

The communication module 320 may have a configuration that is the sameas or similar to that of the communication interface 170 of FIG. 1. Thecommunication module 320 may include, for example, a cellular module321, a Wi-Fi module 323, a Bluetooth module 325, a GNSS module 327(e.g., a GPS module, a GLONASS module, a BeiDou module, or a Galileomodule), an NFC module 328, and a radio frequency (RF) module 329.

The cellular module 321 may provide, for example, a voice call, a videocall, a text message service, an Internet service, or the like via acommunication network. According to an embodiment, the cellular module321 may identify or authenticate the electronic device 301 in thecommunication network using the subscriber identification module (e.g.,a subscriber identity module (SIM) card) 324. According to anembodiment, the cellular module 321 may perform at least some of thefunctions that the processor 310 may provide. According to anembodiment, the cellular module 321 may include a communicationprocessor (CP).

Each of the Wi-Fi module 323, the Bluetooth module 325, the GNSS module327, or the NFC module 328 may include, for example, a processor forprocessing data transmitted and received via a corresponding module. Insome embodiments, at least some (two or more) from among the cellularmodule 321, the Wi-Fi module 323, the Bluetooth module 325, the GNSSmodule 327, and the NFC module 328 may be included in a singleIntegrated Chip (IC) or IC package.

The RF module 329 may transmit and receive, for example, a communicationsignal (e.g., an RF signal). The RF module 329 may include, for example,a transceiver, a power amplifier module (PAM), a frequency filter, alow-noise amplifier (LNA), an antenna, or the like. According to anotherembodiment, at least one of the cellular module 321, the Wi-Fi module323, the Bluetooth module 325, the GNSS module 327, and the NFC module328 may transmit and receive an RF signal via a separate RF module.

The subscriber identification module 324 may include, for example, acard including a subscriber identification module and/or an embeddedSIM, and may contain unique identification information (e.g., anintegrated circuit card identifier (ICCID)) or subscriber information(e.g., an international mobile subscriber identity (IMSI)).

The memory 330 (e.g., the memory 130) may include, for example, anembedded memory 332 or an external memory 334. The embedded memory 332may include at least one of, for example, a volatile memory (e.g., adynamic RAM (DRAM), a static RAM (SRAM), a synchronous dynamic RAM(SDRAM), or the like) and a nonvolatile memory (e.g., a one-timeprogrammable ROM (OTPROM), a programmable ROM (PROM), an erasable andprogrammable ROM (EPROM), an electrically erasable and programmable ROM(EEPROM), a mask ROM, a flash ROM, a flash memory (e.g., a NAND flashmemory or a NOR flash memory), a hard drive, or a solid-state drive(SSD).

The external memory 334 may further include a flash drive, for example,a compact flash (CF), a secure digital (SD), a micro secure digital(Micro-SD), a mini secure digital (Mini-SD), an eXtreme digital (xD), amulti-media card (MMC), a memory stick, or the like. The external memory334 may be functionally and/or physically connected to the electronicdevice 301 via various interfaces.

The sensor module 340 may, for example, measure a physical quantity ordetect the operating state of the electronic device 301, and may convertthe measured or detected information into an electrical signal. Thesensor module 340 may include, for example, at least one of a gesturesensor 340A, a gyro sensor 340B, an atmospheric pressure sensor 340C, amagnetic sensor 340D, an acceleration sensor 340E, a grip sensor 340F, aproximity sensor 340G, a color sensor 340H (e.g., a Red, Green, and Blue(RGB) sensor), a biometric sensor 340I, a temperature/humidity sensor340J, an illumination sensor 340K, and an ultraviolet (UV) sensor 340M.Additionally or alternatively, the sensor module 340A may include, forexample, an E-nose sensor, an electromyography (EMG) sensor, anelectroencephalogram (EEG) sensor, an electrocardiogram (ECG) sensor, anInfrared (IR) sensor, an iris sensor, and/or a fingerprint sensor. Thesensor module 340 may further include a control circuit for controllingone or more sensors included therein. In some embodiments, theelectronic device 301 may further include a processor, which isconfigured to control the sensor module 340, as a part of the processor310 or separately from the processor 310, so as to control the sensormodule 340 while the processor 310 is in a sleep state.

The input device 350 may include, for example, a touch panel 352, a(digital) pen sensor 354, a key 356, and an ultrasonic input unit 358.The touch panel 352 may be, for example, at least one of a capacitivetype, a resistive type, an infrared type, and an ultrasonic type.Furthermore, the touch panel 352 may further include a control circuit.The touch panel 352 may further include a tactile layer to provide atactile reaction to a user.

The (digital) pen sensor 354 may include, for example, a recognitionsheet which is a part of a touch panel or is separate from a touchpanel. The key 356 may include, for example, a physical button, anoptical key, or a keypad. The ultrasonic input device 358 may detectultrasonic waves, which are generated by an input tool, via a microphone(e.g., a microphone 388) to identify data corresponding to the detectedultrasonic waves.

The display 360 (e.g., the display 160) may include a panel 362, ahologram device 364, or a projector 366. The panel 362 may have aconfiguration that is the same as, or similar to, that of the display160 illustrated in FIG. 1. The panel 362 may be implemented to be, forexample, flexible, transparent, or wearable. The panel 362 and the touchpanel 352 may be formed as a single module. The hologram device 364 mayshow a three-dimensional image in the air using light interference. Theprojector 366 may display an image by projecting light onto a screen.The screen may be located, for example, in the interior of, or on theexterior of, the electronic device 301. According to an embodiment, thedisplay 360 may further include a control circuit for controlling thepanel 362, the hologram device 364, or the projector 366.

The interface 370 may include, for example, a high-definition multimediainterface (HDMI) 372, a universal serial bus (USB) 374, an opticalinterface 376, or a D-subminiature (D-sub) interface 378. The interface370 may be included in, for example, the communication interface 170illustrated in FIG. 1. Additionally or alternatively, the interface 370may include, for example, a mobile high-definition link (MHL) interface,a secure digital (SD) card/multi-media card (MMC) interface, or aninfrared data association (IrDA) standard interface.

The audio module 380 may bilaterally convert, for example, a sound andan electric signal. At least some elements of the audio module 380 maybe included in, for example, the input/output interface 145 illustratedin FIG. 1. The audio module 380 may process voice information input oroutput via, for example, a speaker 382, a receiver 384, earphones 386,the microphone 388, or the like.

The camera module 391 is a device which may photograph a still image anda video. According to an embodiment, the camera module 391 may includeone or more image sensors (e.g., a front sensor or a back sensor), alens, an image signal processor (ISP), or a flash (e.g., an LED, a xenonlamp, or the like).

The power management module 395 may manage, for example, the power ofthe electronic device 301. According to an embodiment, the powermanagement module 395 may include a power management integrated circuit(PMIC), a charger integrated circuit (IC), or a battery or fuel gauge.The PMIC may have a wired and/or wireless charging scheme. The wirelesscharging method may include, for example, a magnetic resonance method, amagnetic induction method, an electromagnetic wave method, and the like.Additional circuits (e.g., a coil loop, a resonance circuit, arectifier, and the like) for wireless charging may be further included.The battery gauge may measure, for example, the amount of chargeremaining in the battery 396 and a voltage, current, or temperaturewhile charging. The battery 396 may include, for example, a rechargeablebattery and/or a solar battery.

The indicator 397 may display a particular state, for example, a bootingstate, a message state, a charging state, or the like of the electronicdevice 301 or a part (e.g., the processor 310) of the electronic device301. The motor 398 may convert an electric signal into mechanicalvibration, and may generate vibration, a haptic effect, or the like.Although not illustrated, the electronic device 301 may include aprocessing unit (e.g., a GPU) for supporting mobile television (TV). Theprocessing device for supporting mobile TV may process, for example,media data according to a standard such as digital multimediabroadcasting (DMB), digital video broadcasting (DVB), or mediaFLO™.

Each of the above-described component elements of hardware according tothe present disclosure may be configured with one or more components,and the names of the corresponding component elements may vary based onthe type of electronic device. The electronic device according tovarious embodiments of the present disclosure may include at least oneof the aforementioned elements. Some elements may be omitted or otheradditional elements may be further included in the electronic device.Also, some of the hardware components according to various embodimentsmay be combined into one entity, which may perform functions identicalto those of the relevant components before the combination.

FIG. 4 is a block diagram of a program module according to variousembodiments. According to an embodiment, the program module 410 (e.g.,the program 140) may include an operating system (OS) that controlsresources relating to an electronic device (e.g., the electronic device101) and/or various applications (e.g., the application programs 147)running on the operating system. The operating system may be, forexample, Android, iOS, Windows, Symbian, Tizen, Bada, or the like.

The program module 410 may include a kernel 420, middleware 430, anapplication programming interface (API) 460, and/or an application 470.At least some of the program module 410 may be preloaded on anelectronic device, or may be downloaded from an external electronicdevice (e.g., the electronic device 102 or 104, or the server 106).

The kernel 420 (e.g., the kernel 141) may include, for example, a systemresource manager 421 and/or a device driver 423. The system resourcemanager 421 may control, allocate, or retrieve system resources.According to an embodiment, the system resource manager 421 may includea process management unit, a memory management unit, a file-systemmanagement unit, or the like. The device driver 423 may include, forexample, a display driver, a camera driver, a Bluetooth driver, a sharedmemory driver, a USB driver, a keypad driver, a Wi-Fi driver, an audiodriver, or an inter-process communication (IPC) driver.

The middleware 430 may provide a function required by the applications470 in common, or may provide various functions to the applications 470via the API 460 so that the applications 470 may efficiently use thelimited system resources within the electronic device. According to anembodiment, the middleware 430 (e.g., the middleware 143) may include,for example, at least one of a runtime library 435, an applicationmanager 441, a window manager 442, a multimedia manager 443, a resourcemanager 444, a power manager 445, a database manager 446, a packagemanager 447, a connectivity manager 448, a notification manager 449, alocation manager 450, a graphic manager 451, and a security manager 452.

The runtime library 435 may include, for example, a library module thata compiler uses in order to add a new function via a programminglanguage while the applications 470 are being executed. The runtimelibrary 435 may perform functions that are related to the management ofinput and output, the management of memory, arithmetic functions, andthe like.

The application manager 441 may manage, for example, the life cycle ofat least one of the applications 470. The window manager 442 may manageGUI resources used for a screen. The multimedia manager 443 maydetermine formats required for reproducing various media files, and mayencode or decode a media file using a coder/decoder (codec) suitable forthe corresponding format. The resource manager 444 may manage resources,such as source code, memory, storage space, and the like of at least oneof the applications 470.

The power manager 445 may operate together with, for example, a basicinput/output system (BIOS) to manage a battery or power, and may providepower information required for the operation of the electronic device.The database manager 446 may generate, search for, or change a databaseto be used by at least one of the applications 470. The package manager447 may manage the installation or update of an application that isdistributed in the form of a package file.

The connectivity manager 448 may manage wireless connection, forexample, Wi-Fi, Bluetooth, or the like. The notification manager 449 maydisplay or report an event, such as an arrival message, an appointment,a proximity notification, or the like, in such a manner as not todisturb a user. The location manager 450 may manage location informationof the electronic device. The graphic manager 451 may manage graphiceffects to be provided to a user or user interfaces related to thegraphic effects. The security manager 452 may provide all securityfunctions required for system security, user authentication, or thelike. According to an embodiment, when the electronic device (e.g., theelectronic device 101) has a telephony function, the middleware 430 mayfurther include a telephony manager that manages a voice or video callfunction of the electronic device.

The middleware 430 may include a middleware module for forming acombination of various functions of the aforementioned elements. Themiddleware 430 may provide a module specified for each type of operatingsystem in order to provide a differentiated function. Also, themiddleware 430 may dynamically delete some existing elements, or may addnew elements.

The API 460 (e.g., the API 145) is, for example, a set of APIprogramming functions, and may be provided in a different configurationdepending on the operating system. For example, in the case of Androidor iOS, one API set may be provided for each platform. In the case ofTizen, two or more API sets may be provided for each platform.

The applications 470 (e.g., the application programs 147) may includeone or more applications that can perform functions, for example, home471, a dialer 472, SMS/MMS 473, an instant message (IM) 474, a browser475, a camera 476, an alarm 477, contacts 478, a voice dial 479, ane-mail 480, a calendar 481, a media player 482, an album 483, a clock484, health care (e.g., measuring exercise quantity or blood sugar), andenvironment information (e.g., providing atmospheric pressure, humidity,temperature information, and the like).

According to an embodiment, the applications 470 may include anapplication (hereinafter, referred to as an “information exchangeapplication” for ease of description) that supports the exchange ofinformation between an electronic device (e.g., the electronic device101) and an external electronic device (e.g., the electronic device 102or 104). The information exchange application may include, for example,a notification relay application for transferring predeterminedinformation to an external electronic device or a device managementapplication for managing an external electronic device.

For example, the notification relay application may include a functionof transferring, to an external electronic device (e.g., the electronicdevice 102 or 104), notification information generated from otherapplications of the electronic device (e.g., an SMS/MMS application, ane-mail application, a health management application, an environmentalinformation application, or the like). Furthermore, the notificationrelay application, for example, may receive notification informationfrom an external electronic device and may provide the receivednotification information to a user.

The device management application may manage (e.g., install, delete, orupdate), for example, at least one function of an external electronicdevice (e.g., the electronic device 102 or 104) that communicates withthe electronic device (e.g., a function of turning on/off the externalelectronic device itself (or some elements thereof) or a function ofadjusting the brightness (or resolution) of a display), applicationsthat operate in the external electronic device, or services (e.g., acall service, a message service, or the like) that are provided by theexternal electronic device.

According to an embodiment, the applications 470 may includeapplications (e.g., a health care application of a mobile medicalappliance, or the like) designated according to the attributes of anexternal electronic device (e.g., the electronic device 102 or 104).According to an embodiment, the applications 470 may includeapplications received from an external electronic device (e.g., theserver 106 or the electronic device 102 or 104). According to anembodiment, the applications 470 may include a preloaded application ora third-party application that may be downloaded from a server. Thenames of the elements of the program module 410 of the illustratedembodiment may be changed depending on the type of operating system.

According to various embodiments, at least a part of the programmingmodule 410 may be implemented as software, firmware, hardware, or acombination of two or more thereof. At least a part of the programmodule 410 may be implemented (e.g., executed) by, for example, aprocessor (e.g., the processor 210). At least a part of the programmingmodule 410 may include, for example, a module, a program, a routine,sets of instructions, a process, or the like for performing one or morefunctions.

FIG. 5 is a diagram illustrating an operation of controlling an externalelectronic device 504 (e.g., the electronic device 104) by an electronicdevice 505 (e.g., the electronic device 101) according to variousembodiments. Referring to FIG. 5, when the electronic device 501 isconnected to at least one external electronic device 504 (e.g., avehicle, a TV, a notebook, a washing machine, or the like), theelectronic device 501 may display a user interface 565 for controllingthe external electronic device 504 in a quick setting area 563 of anotification panel area 561 of the electronic device 501. A userutilizes the displayed user interface 565 in order to quickly controlthe external electronic device 504.

According to various embodiments, a method of controlling an externalelectronic device (e.g., the electronic device 104) by an electronicdevice (e.g., the electronic device 101) may include: receiving, from anexternal electronic device connected to the electronic device, datainformation corresponding to at least one function of the externalelectronic device; displaying a setting window for setting a userinterface for controlling the external electronic device using the datainformation; selecting a control item corresponding to the at least onefunction included in the setting window according to reception of userinput; and setting and displaying the user interface corresponding tothe selected control item.

According to various embodiments, the operation of receiving the datainformation corresponding to the at least one function of the externalelectronic device from the external electronic device connected to theelectronic device may include: displaying a list of external electronicdevices connectable to the electronic device; and receiving the datainformation from the external electronic device via connection to theexternal electronic device when user input of selecting the externalelectronic device from the displayed external electronic device list isreceived.

According to various embodiments, the operation of receiving the datainformation from the external electronic device via the connection tothe external electronic device may include: displaying a screen forselecting whether to establish a connection to the external device whenthe user input for selecting the external electronic device is received;and establishing a connection to the external electronic device whenuser input of selecting the connection to the electronic device isreceived.

According to various embodiments, the data information may include atleast one from among an ID of the control item corresponding to thefunction, a label of the control item corresponding to the function, adata type of the control item corresponding to the function, and a rangeof a setting value of a component required according to the data type.

According to various embodiments, the operation of displaying thesetting window may include: generating, using the data information, thecontrol item which corresponds to the at least one function and is to bedisplayed in one of a first area and a second area of a display of theelectronic device; and including the generated control item in thesetting window.

According to various embodiments, the setting window may include a firstsetting area corresponding to the first area, and a second setting areacorresponding to the second area.

According to various embodiments, the setting window may further includea third setting area for setting an icon indicating the external device.

According to various embodiments, the method may further includereceiving state information corresponding to the function of theexternal electronic device from the external electronic device.

According to various embodiments, the operation of setting anddisplaying the user interface corresponding to the selected control itemmay include displaying the selected control item to which the stateinformation is reflected.

According to various embodiments, the method may further includetransmitting a signal for controlling the function corresponding to thecontrol item to the external electronic device when user input forcontrolling the control item of the displayed user interface isreceived.

FIG. 6 is a flowchart illustrating an operation of controlling anexternal electronic device (e.g., the electronic device 104) by anelectronic device (e.g., the electronic device 101) according to variousembodiments. FIGS. 7A to 7F are diagrams illustrating control of anexternal electronic device (e.g., the electronic device 104) by anelectronic device (e.g., the electronic device 101) according to variousembodiments.

In operation 610, an electronic device may determine whether toestablish a connection to an external electronic device. When theelectronic device determines to establish the connection to the externalelectronic device in operation 610, the electronic device may proceedwith operation 620. Otherwise, the electronic device proceeds withoperation 610 again.

When a quick setting menu (not illustrated) in a notification panel area(not illustrated) of the electronic device is selected according toreception of user input (e.g., touch input), the electronic device(e.g., the electronic device 101) may display a setting screen 761 ofFIG. 7A.

The setting screen 761 may include a first icon 71 for adding anexternal electronic device. In response to user input (e.g., touchinput), the electronic device may select the first icon 71. Also, inresponse to user input, the electronic device may display informationassociated with the first icon 71, for example, information 72indicating that the first icon 71 is used for adding an externalelectronic device.

When the first icon 71 is selected, the electronic device may display anexternal electronic device list 73 including external electronic devicesconnectable to the electronic device, as illustrated in FIG. 7B. Theexternal electronic device list 73 may be displayed in the form in whichicons corresponding to connectable external electronic devices aredisplayed, as illustrated in FIG. 7B.

When an icon 74 corresponding to an external electronic device to beconnected is selected as illustrated in FIG. 7B according to receptionof user input, a popup-window may be displayed, asking whether toestablish a connection to the selected external electronic device, andto enable the user to select “cancel” or “agree” as illustrated in FIG.7C. Based on whether “cancel” or “agree” is selected, the electronicdevice may proceed with operation 620 of FIG. 6, or may proceed withoperation 610 again. For example, when “cancel” of FIG. 7C is selected,the connection to the selected external electronic device may not beestablished. Also, the setting screen 761 of FIG. 7A may be displayed,the external electronic device list 73 of FIG. 7B may be displayed, or ahome screen of the electronic device may be displayed. For example, when“agree” is selected as illustrated in FIG. 7C, the electronic device mayexecute operation 620 of FIG. 6.

Various forms may be used for asking whether to establish the connectionto the selected external electronic device, in addition to the pop-upwindow of FIG. 7C.

In operation 620, the electronic device may request, from the externalelectronic device, data information corresponding to at least onefunction of the external electronic device.

The data information may include at least one from among the ID of thecontrol item corresponding to the function, the label of the controlitem corresponding to the function, the data type of the control itemcorresponding to the function, and the range of a setting value of acomponent required according to the data type. Each item included in thedata information has already been described, and thus descriptionsthereof will be omitted.

In operation 630, the electronic device may determine whether the datainformation of the external electronic device is received from theexternal electronic device. When the electronic device determines thatthe data information is received in operation 630, the electronic devicemay proceed with operation 640. Otherwise, the electronic device mayterminate the operation of the electronic device.

In operation 640, the electronic device may display a setting window forsetting a UI used for controlling the external electronic device usingthe received data information.

The basic frame of the setting window may be stored in a memory (e.g.,the memory 130) of the electronic device, or may be received from theexternal electronic device.

The basic frame of the setting window may include at least one fromamong a first setting area, a second setting area, and a third settingarea. The first setting area is an area corresponding to a first area ofthe electronic device, and may be an area for generating a UI to bedisplayed in the first area. The second setting area is an areacorresponding to a second area of the electronic device, and may be anarea for generating a UI to be displayed in the second area. The thirdsetting area may be an area for setting an icon indicating an externalelectronic device. For example, the third setting area may be an areafor setting an icon that represents an external electronic device and isto be displayed in the first area and/or second area of the electronicdevice.

Referring to FIG. 7D, the setting window may include a first settingarea 75, a second setting area 76, and a third setting area 77.

The first setting area 75 may be an area for generating UI forcontrolling the external electronic device in a predeterminednotification panel area of the electronic device. The first setting area75 may include at least one control item used for configuring a UI to begenerated in the notification panel area. In this instance, the at leastone control item included in the first setting area 75 may be generatedusing received data information. The at least one control item includedin the first setting area 75 may be generated in a manner that prompts auser to select whether to display (add) the same in the notificationpanel area. For example, the at least one control item included in thefirst area 75 may basically include a control item that supports simplepower control of an external electronic device.

Referring to FIG. 7D, descriptions will be provided using the case inwhich the external electronic device is an air conditioner. Also,received data information may include data information corresponding toa power-setting function for setting turning-on or turning-off of theair conditioner, data information corresponding to a temperature-settingfunction of the air conditioner, and data information corresponding to awind-strength setting function of the air conditioner.

The electronic device may display at least one control itemcorresponding to each described function in the first setting area 75 inthe form shown in FIG. 7D. The control item may include a button forselecting whether to display the same in a notification panel area. Forexample, a power-setting control item may be displayed using the datainformation corresponding to the power-setting function. A temperaturecontrol item may be displayed using the data information correspondingto the temperature-setting function. A wind-strength control item may bedisplayed using the data information corresponding to the wind-strengthsetting function. For example, when the label of the data informationcorresponding to the power-setting function is “power setting”,character information of the control item may be generated to be “powersetting”. When a data type is the bool type, a component type may begenerated to be a button for selecting whether to perform setting, andmay be displayed. For example, when the label of the data informationcorresponding to the wind-strength setting function is “wind strength”,character information of the control item may be generated as “windstrength”. When a data type is the int type, a component type may begenerated to be a progress bar. Also, the range of progress of theprogress bar may be generated to correspond to the range of the datainformation.

The second setting area 76 may be an area for generating a UI forcontrolling the external electronic device in a predetermined indicatorarea of the electronic device. The second setting area 76 may include atleast one control item used for configuring a UI to be generated in theindicator area. In this instance, the at least one control item includedin the second setting area 76 may be generated using received datainformation. The at least one control item included in the secondsetting area 76 may include a button for selecting whether to displaythe same in the indicator area.

For example, the at least one control item included in the secondsetting area 76 may include at least one control item of which a datatype is the bool type from the received data information. Also, forexample, a control item for selecting whether to display an icon of theexternal electronic device in the indicator area may be further includedin the second area 76. For example, when a user selects not to displaythe icon of the external electronic device in the indicator area, atleast one control item of which a data type is the bool type mayautomatically become non-selectable. Data information for generating acontrol item for selecting whether to display the icon of the externalelectronic device in the indicator area may be received from theexternal electronic device, or may be stored in the electronic device.

When the external electronic device is an air conditioner, theelectronic device may display at least one control item corresponding toeach function in the form of FIG. 7D, in the second setting area 76. Forexample, using the data information corresponding to the power-settingfunction, a power-setting control item may be displayed. Also, a displaycontrol item for selecting whether to display the icon of the externalelectronic device in the notification area may be displayed.

The third setting area 77 may be an area for setting an icon indicatingthe external device. The third setting area 77 may display the forms oficons previously stored in the electronic device, or the forms of iconsreceived from an external electronic device. The forms of icons mayinclude buttons that enable a user to make selection. Also, the thirdsetting area 77 may further include a button that imports the form of anicon from the memory of the electronic device and/or from the outside.

In operation 650, the electronic device may determine whether user inputfor selecting a control item included in the setting window is received.The control item may correspond to at least one function of the externalelectronic device. In operation 650, when it is determined that userinput is received, the electronic device may proceed with operation 660.Otherwise, the electronic device proceeds with operation 650 again.

In operation 660, the electronic device may generate and display a UIincluding the selected control item.

Referring to FIG. 7D, selection is made in the first setting area 75 inresponse to reception of a user input (touch input) so as to display thepower-setting control item and the wind-strength control item in thenotification panel area. Controlling turning-on or turning-off of an airconditioner via the power-setting control item may be performed byselecting turning-on or turning-off according to reception of user input(touch input) on a power button of the power-setting control item. Also,controlling the wind strength of the air conditioner via thewind-strength control item may be performed by setting a wind strengthaccording to reception of a user input (a drag gesture) on a progressbar of the wind-strength control item.

Also, selection is made in the second setting area 76 according toreception of a user input (a touch input) so as to display adisplay-control item and a power-setting control item in the indicatorarea.

Also, according to reception of a user input (touch input), a first iconform may be selected in the third setting area 77.

Referring to FIG. 7E, a first icon 78 generated in the first icon formthat is selected in the third setting area 77 may be displayed in aquick-setting area 763 of a notification panel area 761. In response touser input(a touch) on the first icon 78, turning-on or turning-off ofthe power of a corresponding external electronic device may becontrolled. Also, a progress bar 79 of the wind-strength control itemselected in the first setting area 75 may be displayed in thequick-setting area 763. For example, the progress bar 79 of thewind-strength control item selected in the first setting area 75 may bedisplayed by extending the size of the quick-setting area 763. Inresponse to user input (a drag gesture) on the progress bar 79, the windstrength of a corresponding external electronic device may be set. Whenthe external electronic device is turned off, the progress bar 79 may beset so as not to be displayed.

Referring to FIG. 7F, the first icon 78 generated in the first icon formthat is selected in the third setting area 77 may be displayed in anindicator area 765. In response to user input (a touch) on the firsticon 78, turning-on or turning-off of the power of a correspondingexternal electronic device may be controlled. According to the currentstate of an external electronic device, the first icon 78 displayed inthe indicator area 765 may be set to be displayed differently. Forexample, when the external electronic device is turned on, the firsticon 78 may be shaded. When the external electronic device is turnedoff, the first icon 78 may not be shaded.

The electronic device may variously generate a UI, which is displayed inthe quick-setting area 763 of FIG. 7E, so as to control an externalelectronic device. For example, according to received data information,the type of control item displayed in each setting area in a settingwindow of FIG. 7D may be changed, and the configuration of a UIdisplayed in the quick-setting area 763 of FIG. 7E may be also changed.

According to various embodiments, when the electronic device (e.g., theelectronic device 101) does not receive data information from anexternal electronic device (e.g., the electronic device 104), theelectronic device may generate a UI which enables only a signalassociated with a simple operation of turning on or off the externalelectronic device to be processed. For example, the electronic devicemay store, in a memory (e.g., the memory 130), a UI basic configurationwhich enables only a signal associated with the operation of turning onor off the external electronic device to be processed when datainformation registered in an external electronic device does not exist.For example, when data information registered in the external electronicdevice does not exist, the electronic device may receive a signalindicating that registered data information does not exist from theexternal electronic device. Also, when the signal indicating that theregistered data information does not exist is received, the electronicdevice may display, on a display (e.g., the display 160), a UI whichenables only a signal associated with an operation of turning on or offthe external electronic device to be processed.

FIG. 8A is a flowchart illustrating operations of generating anddisplaying a user interface for controlling an external electronicdevice by an electronic device (e.g., the electronic device 101)according to various embodiments.

Referring to FIG. 8A, an electronic device 801 (e.g., the electronicdevice 101) may include a processor 805 (e.g., the processor 120), adisplay 807 (e.g., the display 160), and an input unit 809 (e.g., theinput/output interface 150). The processor 805 may include a connectionmanager 802 (e.g., the connection manager 221), a device manager 803(e.g., the device manager 223), and a UI manager 804 (e.g., the UImanager 225).

In operation 811, the connection manager 802 may transmit a signal forrequesting a connection to an external electronic device 81 (e.g., theexternal electronic device 104).

In operation 813, the external electronic device 81 may transmit aresponse to the signal.

In operation 815, the connection manager 802 and the external electronicdevice 81 may be connected.

In operation 817, the connection manager 802 may transmit a connectionevent to the device manager 803.

In operation 819, the device manager 803 may transmit a signal forrequesting data information of the external electronic device 81 to theconnection manager 802. In operation 821, the connection manager 802 maytransmit a signal for requesting data information of the externalelectronic device 81 to the external electronic device 81. The datainformation has already been described, and thus a detailed descriptionthereof will be omitted.

In operation 823, the external electronic device 81 may transmit thedata information of the external electronic device 81 to the connectionmanager 802. In operation 825, the connection manager 802 may transmitthe data information of the external electronic device 81 received fromthe external electronic device 81 to the device manager 803.

In operation 827, the device manager 803 may transmit a connection eventcorresponding to the received data information of the externalelectronic device 81 to the UI manager 804.

In operation 829, the UI manager 804 may generate a UI for controllingthe external electronic device 81. In operation 831, the display 807 maydisplay the UI generated by the UI manager 804. The UI for controllingthe external electronic device 81 has already been described, and thus,a detailed description thereof will be omitted.

FIG. 8B is a flowchart illustrating an operation of controlling anexternal electronic device in response to user input for controlling theexternal electronic device by an electronic device (e.g., the electronicdevice 101) according to various embodiments. After executing operation831 of FIG. 8A, which has already been described, the electronic devicemay execute operation 835, which will be described below, in response touser input. Alternatively, when a UI for controlling the externalelectronic device 81 is displayed in the electronic device, theelectronic device may connect the connection manager 802 and theexternal electronic device 81 in operation 815 according to operations811 and 813 of FIG. 8A, and then may execute operation 833, which willbe described below.

In operation 833, the input unit 809 may receive input for controllingthe external electronic device 81. For example, user input (e.g., atouch, a drag, or the like) on the UI displayed in the display 807 maybe received.

In operation 835, the input unit 809 may transmit, to the device manager803, a control signal for controlling the external electronic device 81according to the received input.

In operation 837, the device manager 803 may approve the receivedcontrol signal. In operation 839, the device manager 803 may transmitthe approved control signal to the connection manager 802.

In operation 841, the connection manager 802 may generate a packetincluding the approved control signal. In operation 843, the connectionmanager 802 may transmit the generated packet to the external electronicdevice 81.

In operation 845, the external electronic device 81 may execute acontrol operation according to the approved control signal included inthe packet.

For example, the external electronic device 81 may or may not executeoperation 847 according to the type of the approved control signal. Forexample, when the approved control signal includes a state informationrequest signal that requests the state information of the externalelectronic device 81, the external electronic device 81 may executeoperation 847.

In operation 847, the external electronic device 81 may transmit theresult of the executed control operation to the connection manager 802.In operation 849, the connection manager 802 may transmit the operationresult to the device manager 803. In operation 851, the device manager803 may transmit the operation result to the UI manager 804.

In operation 853, the UI manager 804 may update a UI according to theoperation result.

According to the above-described operation of FIG. 8, by a request fromthe device manager 803, the external electronic device 81 may receive arequest pertaining to data information collection. In this instance,when data information registered in the external electronic device 81does not exist, the UI manager 804 may support a basic configurationsuch that only a signal associated with a simple power-on/off operationis processed.

FIG. 9 is a diagram illustrating a change in the state of an electronicdevice according to an operation of controlling an external electronicdevice (e.g., the electronic device 104) by an electronic device (e.g.,the electronic device 101) according to various embodiments.

When the electronic device and the external electronic device areconnected, the electronic device may display information indicating thatthe external electronic device is connected to the electronic device inan indicator area 965, as illustrated in FIG. 9A. For example, when theexternal electronic device and a connection manager (e.g., theconnection manager 221) of the electronic device are connected, and adevice manager (e.g., the device manager 223) of the electronic devicesuccessfully obtains data information for controlling the externalelectronic device via the connection manager, the electronic device maydisplay information, indicating that the external electronic device isconnected, in the indicator area for a predetermined period of time.

According to the above-described embodiments, when a UI for controllingan external electronic device is generated, the electronic device maydisplay a UI 978 for controlling an external electronic device in theindicator area 965, as illustrated in FIG. 9B. For example, by allowinga user to perform a touch on the UI 978 for controlling the externalelectronic device displayed in the indicator area 965 and to directlycontrol bool-type control information of the external electronic device,the external electronic device may be controlled without accessing anotification panel (e.g., the notification panel 761).

For example, a user may perform a touch on the UI 978, which is forcontrolling the external electronic device and is displayed in theindicator area 965, so as to control the external electronic device tobe turned on or off. In the state in which the external electronicdevice is turned off, when a user provides a touch on the UI 978 forcontrolling the external electronic device, a control signal for turningon the external electronic device may be transmitted to the externalelectronic device. For example, in the state in which the externalelectronic device is turned on, when a user provides a touch on the UI978 for controlling the external electronic device, a control signal forturning off the external electronic device may be transmitted to theexternal electronic device.

The term “module” as used herein may, for example, mean a unit includingone of hardware, software, and firmware or a combination of two or moreof them. The “module” may be interchangeably used with, for example, theterm “unit”, “logic”, “logical block”, “component”, or “circuit”. The“module” may be a minimum unit of an integrated component element or apart thereof. The “module” may be a minimum unit for performing one ormore functions or a part thereof. The “module” may be mechanically orelectronically implemented. For example, the “module” according to thepresent disclosure may include at least one of an Application-SpecificIntegrated Circuit (ASIC) chip, a Field-Programmable Gate Arrays (FPGA),and a programmable-logic device for performing operations which has beenknown or are to be developed hereinafter.

According to various embodiments, at least some of the devices (forexample, modules or functions thereof) or the method (for example,operations) according to the present disclosure may be implemented by acommand stored in a computer-readable storage medium in a programmingmodule form. The instruction, when executed by a processor (e.g., theprocessor 120), may cause the one or more processors to execute thefunction corresponding to the instruction. The computer-readable storagemedium may be, for example, the memory 130.

The computer readable recoding medium may include a hard disk, a floppydisk, magnetic media (e.g., a magnetic tape), optical media (e.g., aCompact Disc Read Only Memory (CD-ROM) and a Digital Versatile Disc(DVD)), magneto-optical media (e.g., a floptical disk), a hardwaredevice (e.g., a Read Only Memory (ROM), a Random Access Memory (RAM), aflash memory), and the like. In addition, the program instructions mayinclude high class language codes, which can be executed in a computerby using an interpreter, as well as machine codes made by a compiler.The aforementioned hardware electronic device may be configured tooperate as one or more software modules in order to perform theoperation of the present disclosure, and vice versa.

The programming module according to the present disclosure may includeone or more of the aforementioned components or may further includeother additional components, or some of the aforementioned componentsmay be omitted. Operations executed by a module, a programming module,or other component elements according to various embodiments of thepresent disclosure may be executed sequentially, in parallel,repeatedly, or in a heuristic manner. Furthermore, some operations maybe executed in a different order or may be omitted, or other operationsmay be added. Various embodiments disclosed herein are provided merelyto easily describe technical details of the present disclosure and tohelp the understanding of the present disclosure, and are not intendedto limit the scope of the present disclosure. Therefore, it should beconstrued that all modifications and changes or modified and changedforms based on the technical idea of the present disclosure fall withinthe scope of the present disclosure.

The invention claimed is:
 1. A method of controlling an externalelectronic device by an electronic device, the method comprising:receiving, from the external electronic device connected to theelectronic device, information corresponding to at least one function ofthe external electronic device; identifying a data type of a controlitem to be displayed on a setting window based on the receivedinformation, wherein the control item corresponds to the at least onefunction; generating the control item in a form corresponding to theidentified data type; displaying the setting window including thegenerated control item; receiving a user input for the control itemincluded in the displayed setting window; based on the user input,setting a region for displaying the control item or a user interfacecorresponding to the control item among at least one of an indicatorregion or a notification panel region of a display, the indicator regionbeing placed at an uppermost position of the display and being a regionfor displaying a current status of the electronic device, and thenotification panel region being a region which appears by a user inputassociated with the indicator region, wherein the user interface is usedfor controlling the at least one function of the external electronicdevice, and displaying the control item or the user interface in the setregion through the display.
 2. The method of claim 1, wherein thereceiving, from the external electronic device connected to theelectronic device, the information corresponding to the at least onefunction of the external electronic device comprises: displaying a listof external electronic devices connectable to the electronic device;when a user input of selecting the external electronic device from thedisplayed external electronic device list is received, displaying ascreen for selecting whether to establish a connection to the externalelectronic device; when a user input of selecting the connection to theexternal electronic device is received, establishing the connection tothe external electronic device; and receiving the information from theexternal electronic device via the connection to the external electronicdevice.
 3. The method of claim 1, wherein the displaying the settingwindow including the generated control item comprises: displaying thegenerated control item in at least one of a first area or a second areaof a display of the electronic device, wherein the setting windowfurther comprises a first setting area corresponding to the first area,a second setting area corresponding to the second area, and a thirdsetting area for setting an icon indicating the external electronicdevice.
 4. The method of claim 1, further comprising: receiving stateinformation corresponding to the function of the external electronicdevice from the external electronic device, wherein displaying thecontrol item or the user interface comprises: displaying the controlitem in which the state information is reflected.
 5. The method of claim1, further comprising: transmitting a signal for controlling the atleast one function corresponding to the control item to the externalelectronic device when a user input for the displayed user interface isreceived.
 6. An electronic device, comprising: an input device; acommunication circuit; a display; and a processor configured to:receive, from an external electronic device connected via thecommunication circuit, information corresponding to at least onefunction of the external electronic device, identify a data type of acontrol item to be displayed on a setting window based on the receivedinformation, wherein the control item corresponds to the at least onefunction, generate the control item in a form corresponding to theidentified data type, control the display to display, the setting windowincluding the generated control item, receive a user input via the inputdevice for the control item included in the displayed setting window,based on the user input, setting a region for displaying the controlitem or a user interface corresponding to the control item among atleast one of an indicator region or a notification panel region of thedisplay, the indicator region being placed at an uppermost position ofthe display and being a region for displaying a current status of theelectronic device, and the notification panel region being a regionwhich appears by a user input associated with the indicator region,wherein the user interface is used for controlling the at least onefunction of the external electronic device; and control the display todisplay the control item or the user interface in the set region throughthe display.
 7. The electronic device of claim 6, wherein the processoris configured to: control the display to display, an external electronicdevice list of external electronic devices connectable to the electronicdevice, and when a user input of selecting the external electronicdevice from the displayed external electronic device list is receivedvia the input device, perform control so as to establish a connection tothe external electronic device via the communication circuit.
 8. Theelectronic device of claim 7, wherein the processor is configured to:control the display to display a screen for selecting whether toestablish the connection to the external electronic device when a userinput of selecting the external electronic device from the displayedexternal electronic device list is received via the input device; andestablish the connection to the external electronic device via thecommunication circuit when a user input of selecting the connection tothe external electronic device is received via the input device.
 9. Theelectronic device of claim 6, wherein the information includes at leastone from among an ID of the control item corresponding to the function,a label of the control item corresponding to the function, the data typeof the control item corresponding to the function, or a range of asetting value of a component required according to the data type. 10.The electronic device of claim 6, wherein the control item is to bedisplayed in at least one of a first area or a second area of thedisplay, using the data information.
 11. The electronic device of claim10, wherein the setting window comprises a first setting areacorresponding to the first area, and a second setting area correspondingto the second area.
 12. The electronic device of claim 11, wherein thesetting window further comprises a third setting area for setting anicon indicating the external electronic device.
 13. The electronicdevice of claim 6, wherein the processor is configured to performcontrol so as to receive state information corresponding to the functionof the external electronic device from the external electronic devicevia the communication circuit.
 14. The electronic device of claim 13,wherein the processor is configured to control the display to displaythe selected control item in which the state information is reflected.15. The electronic device of claim 6, wherein the processor isconfigured to transmit a signal for controlling the functioncorresponding to the control item to the external electronic device viathe communication circuit when a user input for the user interface isreceived via the input device.